package jaux.tank.bean.entity.system;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Lob;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 工作沟通附件
 * @author dong
 *
 */
@MappedSuperclass
public class BaseAttachment extends EntityWithObjectId {

	/**
	 * 文件名
	 */
	@Column(length = 255)
	private String fileName;
	
	/**
	 * 文件类型
	 */
	private String fileType;
	
	/**
	 * 文件大小（字节）
	 */
	private Long fileSize;
	
	/** 上传时间. */
	private String uploadTime;
	
	/** 上传用户. */
	@Column(length = 40)
	private String uploaderId;
	
	
	/**
	 * 保存方式
	 */
	private String saveTo = "filesystem";
	
	/**
	 * 保存路径
	 */
	@Column(length = 512)
	private String savePath;
	
	/**
	 * 描述备注
	 */
	@Column(length = 512)
	private String description;

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getSaveTo() {
		return saveTo;
	}

	public void setSaveTo(String saveTo) {
		this.saveTo = saveTo;
	}

	public String getSavePath() {
		return savePath;
	}

	public void setSavePath(String savePath) {
		this.savePath = savePath;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Long getFileSize() {
		return fileSize;
	}

	public void setFileSize(Long fileSize) {
		this.fileSize = fileSize;
	}

	public String getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(String uploadTime) {
		this.uploadTime = uploadTime;
	}

	public String getUploaderId() {
		return uploaderId;
	}

	public void setUploaderId(String uploaderId) {
		this.uploaderId = uploaderId;
	}
	
}
